<template>
	<view class="set">
		<view class="one-set" @click="toLoginOut">
			<view>退出登录</view>
		</view>
		<!-- <view class="one-set" @click="xieyi">
			<view>用户协议</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		onShow() {},
		methods: {
			toLoginOut() {
				uni.clearStorageSync();
				uni.switchTab({
					url: '/pages/menu/menu'
				})

			},

			xieyi() {
				uni.navigateTo({
					url: '/pages/set/xieyi'
				})
			}
		}
	}
</script>

<style lang="scss">
	.set {
		width: 710rpx;
		margin-left: auto;
		margin-right: auto;
		margin-top: 20rpx;

		.one-set {
			display: flex;
			justify-content: space-between;
			align-items: center;
			font-size: 30rpx;
			color: #232323;
			background-color: #fff;
			border-radius: 20rpx;
			margin-top: 20rpx;
			padding: 20rpx;
			border-bottom: 1px solid #eeeeee;
		}

	}
</style>